package com.zbkj.service.service;

import com.github.pagehelper.PageInfo;
import com.zbkj.common.request.*;
import com.zbkj.common.model.traceable.OrderTraceableRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zbkj.common.response.*;

import java.util.List;
/**
* @author dazongzi
* @description OrderTraceableRecordService 接口
* @date 2025-07-10
*/
public interface OrderTraceableRecordService extends IService<OrderTraceableRecord> {

    Boolean create(OrderTraceableRecordSaveRequest orderTraceableRecordSaveRequest);

    /**
     * 分页查询订单溯源记录绑定表
     * @param request 查询条件
     * @param pageParamRequest 分页对行
     * @return 查询结果
     */
    List<OrderTraceableRecordPageDataResponse> getList(OrderTraceableRecordSearchRequest request, PageParamRequest pageParamRequest);

    /**
    * 批量删除
    * @param idList
    * @return
    */
    boolean batchDelete(List<Integer> idList);

    /**
    * 查询溯源套餐表详情
    * @param id
    * @return
    */
    OrderTraceableRecordDetailResponse getDetails(Integer id);

    /**
     * 绑定接收器到订单
     * @param request
     * @return
     */
    boolean receiverBind(OrderReceiverBindRequest request);

    PageInfo<OrderTraceableRecordListPageResponse> getMerchantAdminPage(OrderTraceableRecordSearchRequest request, PageParamRequest pageParamRequest);

    List<OrderTraceableRecord> getListByOrderNo(String orderNo);

    List<ZfbOrderRecListDataResponse> getOrderRecList(String orderNo, ZfbOrderMonitorLinkDataResponse orderMonitorLink);

    boolean receiverUnBind(OrderReceiverUnBindRequest request);
}